package com.extend.spring4;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App {
	public static void main( String[] args )
    {
    	AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext("com.extend.spring4");
    	System.out.println(context.getBean(User.class));
    	context.getBeansOfType(Person.class).values().forEach(System.out::println);
    	context.close();
    } 
}
